<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
.Estilo1 {font-size: x-small}
.Estilo3 {font-size: x-small; font-weight: bold; }
.Estilo4 {
	font-size: x-large;
	font-weight: bold;
}
.Estilo5 {font-size: small}
-->
</style>
</head>

<body>
<table width="538" border="0" align="right">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><div align="center"><span class="Estilo4">Cuentas Activas</span></div></td>
        </tr>
        <tr>
          <td><div align="center" class="Estilo4"></div></td>
        </tr>
        <tr>
          <td><div>
            <table width="100%" border="0"><tr><td><div align="left">
              <table width="100%" border="0">
                <tr>
                  <td width="20%"><div align="left"><strong><span class="Estilo1">Usuario</span></strong></div></td>
                  <td width="32%"><div align="left"><strong><span class="Estilo1">Nombre Personal</span></strong></div></td>
                  <td width="14%"><div align="left"><strong><span class="Estilo1">Rol</span></strong></div></td>
                  <td width="19%"><div align="left"><strong><span class="Estilo1">Fecha Ingreso</span></strong></div></td>
                  <td colspan="2"><div align="center"><span class="Estilo3">Acción</span></div></td>
                </tr>
                <?php 
			  if ($accounts0 != NULL)
			  {
				  foreach ($accounts0 as $row)
				  {
					  if ($row['id_user'] != $id_user)
						  {
						  ?>
                <tr>
                  <td><div align="left"><?php echo $row['username']; ?></div></td>
                  <td><div align="left"><?php echo $row['name']; ?> <?php echo $row['lastName']; ?></div></td>
                  <td><div align="left"><?php echo $row['role']; ?></div></td>
                  <td><div align="left"><?php echo $row['dateRegister']; ?></div></td>
                  <td width="8%"><div align="center"><a href="<?php echo base_url(); ?>Travelagencycontroller/disableEnableAccount/<?php echo $id_agency;?>/<?php echo $id_user; ?>/<?php echo $username;?>/4/<?php echo $row['id_user']; ?>/1/1">X</a></div></td>
                  <td width="7%"><div align="center"><a href="#" class="Estilo5">Details</a></div></td>
                </tr>
                <?php
						  }//ciero el if
				  } //cierro el foreach
			} //cierro el If
			else
			{?>
                 <div align="center"><em>Usted Actualmente NO POSEE cuentas Activas</em></div>
                <?php
		    }//cierro el else
			?>
              </table>
            </div></td>
			</tr>
          </table>
          </div></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><div align="center"><span class="Estilo4">Cuentas Deshabilitadas</span></div></td>
        </tr>
        <tr>
          <td><div align="center" class="Estilo4"></div></td>
        </tr>
        <tr>
          <td><div align="center">
            <div>
              <table width="100%" border="0">
                <tr>
                  <td width="20%"><div align="left"><strong><span class="Estilo1">Usuario</span></strong></div></td>
                  <td width="32%"><div align="left"><strong><span class="Estilo1">Nombre Personal</span></strong></div></td>
                  <td width="14%"><div align="left"><strong><span class="Estilo1">Rol</span></strong></div></td>
                  <td width="19%"><div align="left"><strong><span class="Estilo1">Deshabilitado:</span></strong></div></td>
                  <td colspan="2"><div align="center"><span class="Estilo3">Acción</span></div></td>
                </tr>
                <?php 
				if ($accounts1 != NULL)
				{
				  foreach ($accounts1 as $row)
				  {
				  ?>
					<tr>
					  <td><div align="left"><?php echo $row['username']; ?></div></td>
					  <td><div align="left"><?php echo $row['name']; ?> <?php echo $row['lastName']; ?></div></td>
					  <td><div align="left"><?php echo $row['role']; ?></div></td>
					  <td><div align="left"><?php echo $row['dateRegister']; ?></div></td>
					  <td width="8%"><div align="center"><a href="<?php echo base_url(); ?>Travelagencycontroller/disableEnableAccount/<?php echo $id_agency;?>/<?php echo $id_user; ?>/<?php echo $username;?>/4/<?php echo $row['id_user']; ?>/0/1">A</a></div></td>
					  <td width="7%"><div align="center"><a href="#" class="Estilo5">Details</a></div></td>
					</tr>
					<tr>
					  <td colspan="6"></td>
			    </tr>
					<?php 
					} //cierro el foreach 
				} //cierro el if
				else
				{
				?>
                <div align="center"><em>Usted Actualmente NO POSEE cuentas Deshabilitadas</em></div>
		       <?php
		        }//cierro el else
			    ?>
              </table>
            </div>
          </div></td>
        </tr>
        <tr>
          <td width="602"><div align="center">
            <table width="100%" border="0">
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <td width="49%"><div align="center"><a href="<?php echo base_url(); ?>Travelagencycontroller/loadHomeAgency/<?php echo $id_agency;?>/<?php echo $id_user;?>/<?php echo $username;?>/1">Volver al Inicio</a></div></td>
                <td width="51%"><div align="center"><a href="<?php echo base_url(); ?>Travelagencycontroller/loadHomeAgency/<?php echo $id_agency;?>/<?php echo $id_user;?>/<?php echo $username;?>/3">Agregar Nueva Cuenta</a></div></td>
              </tr>
            </table>
          </div></td>
        </tr>
      </table>
</body>
</html>
